package com.wakaca.design.pattern.behavioral.observer.guavatest;

import com.google.common.eventbus.Subscribe;

/**
 * 订阅者
 * Created by wakac on 2019/4/3
 */
public class GuavaEvent {
    @Subscribe  // [səb'skraɪb] n. 订阅
    public void subscribe(String str) {
        // 业务逻辑
        System.out.println("执行subscribe方法，传入的参数是："+str);
    }
}
